From: Paul Donald Date: Fri, 24 Oct 2025 15:30:39 +0000 (+0200) Subject: luci-base: widgets: fix const -> let variable which is later reassigned X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=d3cbf6e6853c1944d0fd163e40fdb76301715154;p=project%2Fluci.git luci-base: widgets: fix const -> let variable which is later reassigned Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 311803feb2..98fc6502f5 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -190,7 +190,7 @@ var CBIZoneSelect = form.ListValue.extend({ } else { const anyval = node.querySelector('[data-value="*"]') || ''; - const emptyval = node.querySelector('[data-value=""]') || ''; + let emptyval = node.querySelector('[data-value=""]') || ''; if (emptyval == null && anyval) { emptyval = anyval.cloneNode(true);